var ContractUtil = require("../utils/contract_utils.js").ContractUtil;
var abifile = './contracts/Simpleinfo.abi';

//var contractAddress = "0x86886c3b49bdce8284e51f340e72f1761e6fb22f";
//var contractAddress =   '0x0000000000000000000000000000000000000000';
var contractAddress = null;
var sampleAddress = "0x86886c3b49bdce8284e51f340e72f1761e6fb22f";
var contractutil = ContractUtil.loadAbiFile(abifile)

var txdata = contractutil.abiInterface.encodeFunctionData("set",["testset",101,sampleAddress]);
console.log("encodeData: ",txdata);


var [name,params] = contractutil.decode_funcion_sigdata(txdata);
console.log("decoderesult %s ,%s",name,params);



